package com.pb.infra.auth.mapper.custom;

import com.pb.infra.auth.entity.custom.PriviInterCustom;
import com.pb.infra.auth.entity.custom.PriviMenuCustom;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 菜单接口映射
 *
 * @author liudebao
 * @date 2020/1/1
 */
@Mapper
@Repository
public interface PriviMenuInterCustomMapper {

    /**
     * 读取菜单接口
     *
     */
    List<Map<String, Object>> getMenuInters(Map<String, Object> map);

    List<Map<String, Object>> queryAllInter();

    void delInterData(Map<String, Object> map);

    void addInterData(Map<String, Object> map);

    List<Map<String, Object>> queryMenuRole(Map<String, Object> map);

    void delRoleRes(Map<String, Object> map);

    void addRoleRes(Map<String, Object> map);

    List<Map<String, Object>> selPosRole(Map<String, Object> map);

    List<PriviInterCustom> selRoleMenuByUserPosId(Map<String, Object> map);

}
